<extend name="./public/frame.html"/>
<block name="content">
    <table class="layui-table">
        <volist name="fields" id="field">
            <tr>
                <td>{$field}</td>
                <td>{$info[$key]}</td>
            </tr>
        </volist>
    </table>
    <script>
        layui.use(['layer'], function(){
            var layer = layui.layer;
            layer.photos({
                photos: '.layer-photos-demo'
                ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
                ,tab: function(pic, layero){
                    var str = "<div style='text-align: center'>"+pic.alt+"</div>";
                    layero.prepend(str);
                }
            });
        });
    </script>
</block>